<?php
/**
 * 入口文件
 */
define('SITE_PATH', dirname(__FILE__).'/');
include SITE_PATH.'MyRedis.php';
if(isset($_GET['act']) && $_GET['act'] == "redistest"){
	MyRedis::set("aaaaaaa","aaaa");
	$aaa = MyRedis::get("aaaaaaa");
	var_dump($aaa);
	die();
}
include SITE_PATH.'CoolQ.class.php';
include SITE_PATH.'CoolQ.config.php';
include SITE_PATH.'CoolQ.demo.php';
include SITE_PATH.'CoolQ.event.php';


// include SITE_PATH.'Player.class.php';
// $Player = new Player();
// var_dump($Player);



// $cards = [];
// $cards1 = [];
// $cards = $cards + $cards1;
// var_dump($cards);die();
// $re = [3=>"3",5=>"5"];
// $random_keys = array_rand($cards,3);
// var_dump($random_keys);die();


// $re = MyRedis::get("cardset837424187");
// $re = json_encode($re,JSON_UNESCAPED_UNICODE);

// var_dump($re);die();
// echo json_encode($re);die();


// {"type":2,"subType":1,"msgID":29,"time":1543806449,"loginQQ":2138353282,"qq":837424187,"group":99437797,"msg":"1","font":51020416}
//如果后续业务逻辑仍需要调用API，请注释掉此语句。
// unset($CQ); //释放资源


// {"type":1,"subType":1,"msgID":1543804389,"time":1543804389,"loginQQ":2138353282,"qq":12345678,"msg":"Msg\uFF1A123","font":12345}